package com.ruoyi.tongyan.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.tongyan.mapper.TAchievementActivityMapper;
import com.ruoyi.tongyan.domain.TAchievementActivity;
import com.ruoyi.tongyan.service.ITAchievementActivityService;

/**
 * 科研活动记录Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-04-21
 */
@Service
public class TAchievementActivityServiceImpl implements ITAchievementActivityService 
{
    @Autowired
    private TAchievementActivityMapper tAchievementActivityMapper;

    /**
     * 查询科研活动记录
     * 
     * @param achivementId 科研活动记录主键
     * @return 科研活动记录
     */
    @Override
    public TAchievementActivity selectTAchievementActivityByAchivementId(Long achivementId)
    {
        return tAchievementActivityMapper.selectTAchievementActivityByAchivementId(achivementId);
    }

    /**
     * 查询科研活动记录列表
     * 
     * @param tAchievementActivity 科研活动记录
     * @return 科研活动记录
     */
    @Override
    public List<TAchievementActivity> selectTAchievementActivityList(TAchievementActivity tAchievementActivity)
    {
        return tAchievementActivityMapper.selectTAchievementActivityList(tAchievementActivity);
    }

    /**
     * 新增科研活动记录
     * 
     * @param tAchievementActivity 科研活动记录
     * @return 结果
     */
    @Override
    public int insertTAchievementActivity(TAchievementActivity tAchievementActivity)
    {
        return tAchievementActivityMapper.insertTAchievementActivity(tAchievementActivity);
    }

    /**
     * 修改科研活动记录
     * 
     * @param tAchievementActivity 科研活动记录
     * @return 结果
     */
    @Override
    public int updateTAchievementActivity(TAchievementActivity tAchievementActivity)
    {
        return tAchievementActivityMapper.updateTAchievementActivity(tAchievementActivity);
    }

    /**
     * 批量删除科研活动记录
     * 
     * @param achivementIds 需要删除的科研活动记录主键
     * @return 结果
     */
    @Override
    public int deleteTAchievementActivityByAchivementIds(Long[] achivementIds)
    {
        return tAchievementActivityMapper.deleteTAchievementActivityByAchivementIds(achivementIds);
    }

    /**
     * 删除科研活动记录信息
     * 
     * @param achivementId 科研活动记录主键
     * @return 结果
     */
    @Override
    public int deleteTAchievementActivityByAchivementId(Long achivementId)
    {
        return tAchievementActivityMapper.deleteTAchievementActivityByAchivementId(achivementId);
    }
}
